const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,


  devServer: {
    proxy: {
      'api': {
        target: 'http://localhost:8080',
        ws: true,
        changeOrigin: true, //是否改变请求源
        pathRewrite: {
          '^/api' : ''  //路径重写，去掉/api前缀
        }
      }
    }
  }
})
